﻿import Header from '@editorjs/header'
import List from '@editorjs/list'
import Paragraph from '@editorjs/paragraph'
import Quote from '@editorjs/quote'
//@ts-ignore
import Marker from '@editorjs/marker'
//@ts-ignore
import Checklist from '@editorjs/checklist'

export const EDITOR_JS_TOOLS = {
    header: {
        class: Header,
        config: {
            placeholder: '输入标题',
            levels: [2, 3, 4],
            defaultLevel: 2
        }
    },
    list: {
        class: List,
        inlineToolbar: true
    },
    paragraph: {
        class: Paragraph,
        inlineToolbar: true
    },
    quote: {
        class: Quote,
        inlineToolbar: true,
        config: {
            quotePlaceholder: '引用内容',
            captionPlaceholder: '引用来源'
        }
    },
    marker: Marker,
    checklist: Checklist
}